package org.sampleSpringFramework.aop.aspect;

import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;

// 自定义cglib动态代理类
public class MyEnhancer {
	// 为了编码的通用性，最好使用Object作为返回值
	public static Object create(Class<?> targetClass, MethodInterceptor interceptor){
		return Enhancer.create(targetClass,interceptor);
	}
}
